#!/bin/bash

mkdir -p /var/run/sshd

source /etc/profile
# create an ubuntu user
# PASS=`pwgen -c -n -1 10`
PASS=ubuntu
# echo "Username: ubuntu Password: $PASS"
id -u ubuntu &>/dev/null || useradd --create-home --shell /bin/bash --user-group --groups adm,sudo ubuntu
echo "ubuntu:$PASS" | chpasswd

/usr/bin/supervisord -c /root/supervisord.conf

su - tomcat7 -c "ervice tomcat7 start && tail -f /opt/tomcat7/logs/catalina.out&"

su - tomcat7 -c  "/etc/init.d/tomcat7 restart"

/etc/init.d/guacd start


/bin/bash
